package com.molin.API.test1;

public class Demo2String {
    public static void main(String[] args) {
        String s1=new String();
        System.out.println(s1);
        char[] chr=new char[]{'a','b','c'};
        //字符串常量池
        String s2=new String(chr);
        System.out.println(chr);
        String s3=new String(chr);
        System.out.println(s2==s3);


    }
}
